package org.kjtc.service;

import java.util.List;

import org.kjtc.entity.BranchCompany;
import org.kjtc.entity.CarInfo;
import org.kjtc.entity.CarTeam;
import org.kjtc.entity.ChargingStation;
import org.kjtc.entity.LineInfo;
import org.kjtc.entity.SubBranchCompany;
import org.kjtc.entity.UserInfo;
import org.springframework.stereotype.Service;

@Service("listService")
public class ListService extends BaseService {
	
	@SuppressWarnings("unchecked")
	public List<BranchCompany> getBranchCompany(BranchCompany branchCompany) throws Exception{
		return (List<BranchCompany>)this.getDaoSupport().findForList("T_List.getBranchCompany",branchCompany);
	}
	
	@SuppressWarnings("unchecked")
	public List<SubBranchCompany> getSubBranchCompany(SubBranchCompany subBranchCompany) throws Exception{
		return (List<SubBranchCompany>) this.getDaoSupport().findForList("T_List.getSubBranchCompany", subBranchCompany);
	}

	@SuppressWarnings("unchecked")
   	public List<ChargingStation> getChargingStationName(ChargingStation chargingStation) throws Exception {
   		return (List<ChargingStation>) this.getDaoSupport().findForList("T_List.getChargingStationName", chargingStation);
   	}

	@SuppressWarnings("unchecked")
	public List<CarTeam> getCarTeam(CarTeam carTeam) throws Exception{
		return (List<CarTeam>) this.getDaoSupport().findForList("T_List.getCarTeam", carTeam);
	}
	
	@SuppressWarnings("unchecked")
	public List<LineInfo> getLineInfo(LineInfo lineInfo) throws Exception {
		return (List<LineInfo>) this.getDaoSupport().findForList("T_List.getLineInfo", lineInfo);
	}
	
	@SuppressWarnings("unchecked")
	public List<CarInfo> getCarInfo(CarInfo carInfo) throws Exception{
		return (List<CarInfo>) this.getDaoSupport().findForList("T_List.getCarInfo", carInfo);
	}
	
	@SuppressWarnings("unchecked")
	public List<UserInfo> getUserName(UserInfo userInfo) throws Exception{
		return (List<UserInfo>) this.getDaoSupport().findForList("T_List.getUserName", userInfo);
	}
}
